GDK W32: Ensure that selection request is processed
authorРуслан Ижбулатов <lrn1986@gmail.com>
Mon, 18 Sep 2017 16:49:11 +0000 (16:49 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:37 +0000 (10:38 +0000)
commit5d0bfdd840ce4be70f09625f35233b377de228d2
tree1ecc5048d78fe517efcf13aab087a453d31d3ae7
parenta66017a6a083dc333d9192c766882c63bcaeffb7
GDK W32: Ensure that selection request is processed

To do that, run the message loop for one second or until the side-effect
of running the selection request handler is achieved (as opposed to
running it until the event is no longer queued).

The disavantage of this method is that if the event handling is
somehow missed (due to a variety of reasons - after all, it's not
a straight path from an event being queued to property_change()
being called), this will loop for one second. Since we do process
events during that time, this will not hang the application, but
might still restrict some of the functionality.

https://bugzilla.gnome.org/show_bug.cgi?id=786509
gdk/win32/gdkdnd-win32.c
gdk/win32/gdkselection-win32.c